<template>
	<view class="container container329916">
		<!-- #ifdef MP-WEIXIN -->
		<u-navbar :isFixed="true" :isMarginRight="false" :borderBottom="false" title="" :background="{}" :backTextStyle="{ color: 'inherit' }" backIconColor="#fff" titleColor="inherit" :isHome="false" :isBack="false">
			<view class="flex align-center diygw-text-md text-bold align-center flex-nowrap diygw-col-24"> </view>
		</u-navbar>
		<!--  #endif -->
		<view class="flex diygw-col-24 flex-direction-column items-start flex-nowrap flex73-clz">
			<view class="flex flex-wrap diygw-col-24 items-center flex74-clz">
				<image :src="userInfo.avatar || '/static/avatar.png'" class="image8-size diygw-image diygw-col-0 image8-clz" mode="widthFix"></image>
				<view class="flex flex-wrap diygw-col-0 justify-between flex3-clz">
					<text class="diygw-text-line1 diygw-col-0 text5-clz">
						{{ userInfo.nickname || '请先登录' }}
					</text>
				</view>
				<text class="flex icon3 diygw-col-0 icon3-clz diy-icon-settings"></text>
			</view>
			<view class="flex flex-wrap diygw-col-24 flex-direction-column flex38-clz">
				<view class="flex flex-wrap diygw-col-24 justify-between items-center flex21-clz">
					<text class="diygw-text-line1 diygw-col-0 text14-clz"> 我的订单 </text>
					<view class="flex flex-wrap diygw-col-0 items-center" @tap="navigateTo" data-type="page" data-url="/pages/order/index">
						<text class="diygw-text-line1 diygw-col-0"> 查看更多 </text>
						<text class="flex icon4 diygw-col-0 diy-icon-right"></text>
					</view>
				</view>
				<view class="flex flex-wrap diygw-col-24 flex19-clz">
					<view class="flex flex-wrap diygw-col-6 flex-direction-column items-center" @tap="navigateTo" data-type="page" data-url="/pages/order/index" data-status="1">
						<text class="flex icon diygw-col-0 icon-clz diy-icon-pay"></text>
						<text class="diygw-text-line1 diygw-col-0 text15-clz"> 待付款 </text>
					</view>
					<view class="flex flex-wrap diygw-col-6 flex-direction-column items-center" @tap="navigateTo" data-type="page" data-url="/pages/order/index" data-status="2">
						<text class="flex icon5 diygw-col-0 icon5-clz diy-icon-text"></text>
						<text class="diygw-text-line1 diygw-col-0 text16-clz"> 待发货 </text>
					</view>
					<view class="flex flex-wrap diygw-col-6 flex-direction-column items-center" @tap="navigateTo" data-type="page" data-url="/pages/order/index" data-status="3">
						<text class="flex icon6 diygw-col-0 icon6-clz diy-icon-deliver"></text>
						<text class="diygw-text-line1 diygw-col-0 text17-clz"> 待收货 </text>
					</view>
					<view class="flex flex-wrap diygw-col-6 flex-direction-column items-center" @tap="navigateTo" data-type="page" data-url="/pages/null" data-status="4">
						<text class="flex icon7 diygw-col-0 icon7-clz diy-icon-roundcheck"></text>
						<text class="diygw-text-line1 diygw-col-0 text3-clz"> 已完成 </text>
					</view>
				</view>
			</view>
			<view class="flex flex-wrap diygw-col-24 flex-direction-column flex-clz">
				<view class="flex flex-wrap diygw-col-24 justify-between items-center flex1-clz">
					<text class="diygw-text-line1 diygw-col-0 text-clz"> 我的功能 </text>
				</view>
				<view class="flex flex-wrap diygw-col-24 flex4-clz">
					<view class="flex flex-wrap diygw-col-6 flex-direction-column items-center" @tap="navigateTo" data-type="page" data-url="/pages/help/index" data-status="1">
						<text class="flex icon2 diygw-col-0 icon2-clz diy-icon-question"></text>
						<text class="diygw-text-line1 diygw-col-0"> 帮助中心 </text>
					</view>
					<button class="flex diygw-btn-default flex-wrap diygw-col-6 flex-direction-column items-center" @tap="navigateTo" data-type="page" data-url="/pages/order/index" data-status="2">
						<text class="flex icon8 diygw-col-0 icon8-clz diy-icon-service"></text>
						<text class="diygw-text-line1 diygw-col-0"> 联系客服 </text>
					</button>
					<view class="flex flex-wrap diygw-col-6 flex-direction-column items-center" @tap="navigateTo" data-type="page" data-url="/pages/address" data-status="3">
						<text class="flex icon9 diygw-col-0 icon9-clz diy-icon-location"></text>
						<text class="diygw-text-line1 diygw-col-0"> 收货地址 </text>
					</view>
					<view class="flex flex-wrap diygw-col-6 flex-direction-column items-center" @tap="navigateTo" data-type="page" data-url="/pages/null" data-status="4">
						<text class="flex icon10 diygw-col-0 icon10-clz diy-icon-settings"></text>
						<text class="diygw-text-line1 diygw-col-0"> 系统设置 </text>
					</view>
				</view>
			</view>
		</view>
		<view class="flex flex-wrap diygw-col-24 items-end diygw-bottom flex2-clz">
			<view class="flex flex-wrap diygw-col-6 flex-direction-column items-center flex8-clz" @tap="navigateTo" data-type="page" data-url="/pages/index" data-redirect="1">
				<view class="flex flex-wrap diygw-col-0 flex-direction-column items-center">
					<image src="/static/sy3.png" class="image2-size diygw-image diygw-col-0" mode="widthFix"></image>
				</view>
				<text class="diygw-text-line1 diygw-col-0"> 首页 </text>
			</view>
			<view class="flex flex-wrap diygw-col-6 flex-direction-column items-center flex11-clz" @tap="navigateTo" data-type="page" data-url="/pages/goods" data-redirect="1">
				<view class="flex flex-wrap diygw-col-0 flex-direction-column items-center">
					<image src="/static/fl.png" class="image-size diygw-image diygw-col-0" mode="widthFix"></image>
				</view>
				<text class="diygw-text-line1 diygw-col-0"> 分类 </text>
			</view>
			<view class="flex flex-wrap diygw-col-6 flex-direction-column items-center flex10-clz" @tap="navigateTo" data-type="page" data-url="/pages/cart" data-redirect="1">
				<view class="flex flex-wrap diygw-col-0 flex-direction-column items-center">
					<text v-if="userInfo.carts && userInfo.carts.length > 0" class="diygw-text-line1 diygw-col-0 animate__animated animate__heartBeat animate__infinite text7-clz"> </text>
					<image src="/static/gwc.png" class="image5-size diygw-image diygw-col-0" mode="widthFix"></image>
				</view>
				<text class="diygw-text-line1 diygw-col-0"> 购物车 </text>
			</view>
			<view class="flex flex-wrap diygw-col-6 flex-direction-column items-center flex14-clz" @tap="navigateTo" data-type="page" data-url="/pages/articles" data-redirect="1">
				<view class="flex flex-wrap diygw-col-0 flex-direction-column items-center">
					<image src="/static/cp1.png" class="image3-size diygw-image diygw-col-0" mode="widthFix"></image>
				</view>
				<text class="diygw-text-line1 diygw-col-0"> 文章 </text>
			</view>
			<view class="flex flex-wrap diygw-col-6 flex-direction-column items-center flex16-clz">
				<view class="flex flex-wrap diygw-col-0 flex-direction-column items-center">
					<image src="/static/wdon.png" class="image4-size diygw-image diygw-col-0" mode="widthFix"></image>
				</view>
				<text class="diygw-text-line1 diygw-col-0"> 我的 </text>
			</view>
		</view>
		<view class="clearfix"></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				//用户全局信息
				userInfo: {},
				//页面传参
				globalOption: {},
				//自定义全局变量
				globalData: {}
			};
		},
		onShow() {
			this.setCurrentPage(this);
		},
		onLoad(option) {
			this.setCurrentPage(this);
			if (option) {
				this.setData({
					globalOption: this.getOption(option)
				});
			}

			this.init();
		},
		methods: {
			async init() {
				await this.isloginFunction();
			},
			// 判断是否登录 自定义方法
			async isloginFunction(param) {
				let thiz = this;
				if (!this.$session.getToken()) {
					//比如未登录，转身到其他页面等
					this.showToast('请先登录');
					this.navigateTo({
						type: 'page',
						url: 'login'
					});
					return;
				}
			}
		}
	};
</script>

<style lang="scss" scoped>
	.flex73-clz {
		margin-left: 10rpx;
		padding-top: 20rpx;
		padding-left: 20rpx;
		width: calc(100% - 10rpx - 10rpx) !important;
		padding-bottom: 20rpx;
		margin-top: 10rpx;
		margin-bottom: 10rpx;
		margin-right: 10rpx;
		padding-right: 20rpx;
	}
	.flex74-clz {
		margin-left: 0rpx;
		width: calc(100% - 0rpx - 0rpx) !important;
		margin-top: 10rpx;
		margin-bottom: 10rpx;
		margin-right: 0rpx;
	}
	.image8-clz {
		border-bottom-left-radius: 120rpx;
		overflow: hidden;
		border-top-left-radius: 120rpx;
		border-top-right-radius: 120rpx;
		border-bottom-right-radius: 120rpx;
	}
	.image8-size {
		height: 96rpx !important;
		width: 96rpx !important;
	}
	.flex3-clz {
		padding-top: 10rpx;
		flex: 1;
		padding-left: 10rpx;
		padding-bottom: 10rpx;
		padding-right: 10rpx;
	}
	.text5-clz {
		font-weight: bold;
		font-size: 40rpx !important;
	}
	.icon3-clz {
		margin-left: 10rpx;
		margin-top: 10rpx;
		margin-bottom: 10rpx;
		margin-right: 10rpx;
	}
	.icon3 {
		font-size: 48rpx;
	}
	.flex38-clz {
		background-color: #ffffff;
		margin-left: 0rpx;
		border-bottom-left-radius: 12rpx;
		overflow: hidden;
		width: calc(100% - 0rpx - 0rpx) !important;
		border-top-left-radius: 12rpx;
		margin-top: 20rpx;
		border-top-right-radius: 12rpx;
		border-bottom-right-radius: 12rpx;
		margin-bottom: 20rpx;
		margin-right: 0rpx;
	}
	.flex21-clz {
		padding-top: 20rpx;
		padding-left: 20rpx;
		padding-bottom: 20rpx;
		border-bottom: 2rpx solid #eee;
		padding-right: 20rpx;
	}
	.text14-clz {
		padding-top: 0rpx;
		padding-left: 0rpx;
		font-size: 32rpx !important;
		padding-bottom: 0rpx;
		padding-right: 0rpx;
	}
	.icon4 {
		font-size: 32rpx;
	}
	.flex19-clz {
		padding-top: 20rpx;
		padding-left: 20rpx;
		padding-bottom: 20rpx;
		border-bottom: 2rpx solid #eee;
		padding-right: 20rpx;
	}
	.icon-clz {
		padding-top: 20rpx;
		border-bottom-left-radius: 120rpx;
		color: #ffffff;
		padding-left: 20rpx;
		padding-bottom: 20rpx;
		border-top-right-radius: 120rpx;
		margin-right: 10rpx;
		background-color: #07c160;
		margin-left: 10rpx;
		overflow: hidden;
		border-top-left-radius: 120rpx;
		margin-top: 10rpx;
		border-bottom-right-radius: 120rpx;
		margin-bottom: 10rpx;
		padding-right: 20rpx;
	}
	.icon {
		font-size: 48rpx;
	}
	.text15-clz {
		padding-top: 10rpx;
		padding-left: 10rpx;
		padding-bottom: 10rpx;
		padding-right: 10rpx;
	}
	.icon5-clz {
		padding-top: 20rpx;
		border-bottom-left-radius: 120rpx;
		color: #ffffff;
		padding-left: 20rpx;
		padding-bottom: 20rpx;
		border-top-right-radius: 120rpx;
		margin-right: 10rpx;
		background-color: #8289f5;
		margin-left: 10rpx;
		overflow: hidden;
		border-top-left-radius: 120rpx;
		margin-top: 10rpx;
		border-bottom-right-radius: 120rpx;
		margin-bottom: 10rpx;
		padding-right: 20rpx;
	}
	.icon5 {
		font-size: 48rpx;
	}
	.text16-clz {
		padding-top: 10rpx;
		padding-left: 10rpx;
		padding-bottom: 10rpx;
		padding-right: 10rpx;
	}
	.icon6-clz {
		padding-top: 20rpx;
		border-bottom-left-radius: 120rpx;
		color: #ffffff;
		padding-left: 20rpx;
		padding-bottom: 20rpx;
		border-top-right-radius: 120rpx;
		margin-right: 10rpx;
		background-color: #f0810c;
		margin-left: 10rpx;
		overflow: hidden;
		border-top-left-radius: 120rpx;
		margin-top: 10rpx;
		border-bottom-right-radius: 120rpx;
		margin-bottom: 10rpx;
		padding-right: 20rpx;
	}
	.icon6 {
		font-size: 48rpx;
	}
	.text17-clz {
		padding-top: 10rpx;
		padding-left: 10rpx;
		padding-bottom: 10rpx;
		padding-right: 10rpx;
	}
	.icon7-clz {
		padding-top: 20rpx;
		border-bottom-left-radius: 120rpx;
		color: #ffffff;
		padding-left: 20rpx;
		padding-bottom: 20rpx;
		border-top-right-radius: 120rpx;
		margin-right: 10rpx;
		background-color: #f02409;
		margin-left: 10rpx;
		overflow: hidden;
		border-top-left-radius: 120rpx;
		margin-top: 10rpx;
		border-bottom-right-radius: 120rpx;
		margin-bottom: 10rpx;
		padding-right: 20rpx;
	}
	.icon7 {
		font-size: 48rpx;
	}
	.text3-clz {
		padding-top: 10rpx;
		padding-left: 10rpx;
		padding-bottom: 10rpx;
		padding-right: 10rpx;
	}
	.flex-clz {
		background-color: #ffffff;
		margin-left: 0rpx;
		border-bottom-left-radius: 12rpx;
		overflow: hidden;
		width: calc(100% - 0rpx - 0rpx) !important;
		border-top-left-radius: 12rpx;
		margin-top: 20rpx;
		border-top-right-radius: 12rpx;
		border-bottom-right-radius: 12rpx;
		margin-bottom: 20rpx;
		margin-right: 0rpx;
	}
	.flex1-clz {
		padding-top: 20rpx;
		padding-left: 20rpx;
		padding-bottom: 20rpx;
		border-bottom: 2rpx solid #eee;
		padding-right: 20rpx;
	}
	.text-clz {
		padding-top: 0rpx;
		padding-left: 0rpx;
		font-size: 32rpx !important;
		padding-bottom: 0rpx;
		padding-right: 0rpx;
	}
	.flex4-clz {
		padding-top: 20rpx;
		padding-left: 20rpx;
		padding-bottom: 20rpx;
		border-bottom: 2rpx solid #eee;
		padding-right: 20rpx;
	}
	.icon2-clz {
		margin-left: 10rpx;
		margin-top: 10rpx;
		margin-bottom: 10rpx;
		margin-right: 10rpx;
	}
	.icon2 {
		font-size: 56rpx;
	}
	.icon8-clz {
		margin-left: 10rpx;
		margin-top: 10rpx;
		margin-bottom: 10rpx;
		margin-right: 10rpx;
	}
	.icon8 {
		font-size: 56rpx;
	}
	.icon9-clz {
		margin-left: 10rpx;
		margin-top: 10rpx;
		margin-bottom: 10rpx;
		margin-right: 10rpx;
	}
	.icon9 {
		font-size: 56rpx;
	}
	.icon10-clz {
		margin-left: 10rpx;
		margin-top: 10rpx;
		margin-bottom: 10rpx;
		margin-right: 10rpx;
	}
	.icon10 {
		font-size: 56rpx;
	}
	.flex2-clz {
		border-top: 2rpx solid #e4e4e4;
		padding-top: 16rpx;
		border-bottom-left-radius: 0rpx;
		bottom: 0rpx;
		padding-left: 16rpx;
		padding-bottom: 16rpx;
		border-top-right-radius: 24rpx;
		background-color: #ffffff;
		box-shadow: 0rpx 4rpx 12rpx rgba(31, 31, 31, 0.16);
		overflow: visible;
		left: 0rpx;
		border-top-left-radius: 24rpx;
		border-bottom-right-radius: 0rpx;
		padding-right: 16rpx;
	}
	.flex8-clz {
		flex: 1;
	}
	.image2-size {
		height: 48rpx !important;
		width: 48rpx !important;
	}
	.flex11-clz {
		flex: 1;
	}
	.image-size {
		height: 48rpx !important;
		width: 48rpx !important;
	}
	.flex10-clz {
		flex: 1;
	}
	.text7-clz {
		border: 2rpx solid #eee;
		border-bottom-left-radius: 40rpx;
		-webkit-animation-duration: 5000ms;
		color: #ffffff;
		animation-delay: 1000ms;
		-webkit-animation-delay: 1000ms;
		border-top-right-radius: 40rpx;
		right: -8rpx;
		background-color: rgba(255, 17, 17, 0.91);
		animation-duration: 5000ms;
		flex-shrink: 0;
		overflow: hidden;
		top: -8rpx;
		width: 16rpx !important;
		border-top-left-radius: 40rpx;
		border-bottom-right-radius: 40rpx;
		position: absolute;
		height: 16rpx !important;
	}
	.image5-size {
		height: 48rpx !important;
		width: 48rpx !important;
	}
	.flex14-clz {
		flex: 1;
	}
	.image3-size {
		height: 48rpx !important;
		width: 48rpx !important;
	}
	.flex16-clz {
		color: #fa240b;
		flex: 1;
	}
	.image4-size {
		height: 48rpx !important;
		width: 48rpx !important;
	}
	.container329916 {
		background-image: url(/static/mbz704.png);
		background-position: top center;
		background-size: cover;
		background-repeat: no-repeat;
	}
</style>
